package com.project.bean;

/**
 * 用户实体类
 */
public class UserBean {
    //用户id
    private int userID;
    //用户账号
    private String account;
    //用户密码
    private String pwd="999";
    //用户真实姓名
    private String realName;
    //等级
    private String grade;

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public UserBean() {
    }

    public UserBean(String account, String realName, String grade) {
        this.account = account;
        this.realName = realName;
        this.grade = grade;
    }

    public int getUserID() {
        return userID;
    }

    public void setUserID(int userID) {
        this.userID = userID;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPwd() {
        return pwd;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "userID=" + userID +
                ", account='" + account + '\'' +
                ", pwd='" + pwd + '\'' +
                ", realName='" + realName + '\'' +
                ", grade='" + grade + '\'' +
                '}'+"\n";
    }
}
